
export default {
    Token(store, token) { // 用户token
        store.commit('TOKEN', token)
    },
    show_toast(store, status) { // 信息提示状态
        store.commit('SHOW_TOAST', status)
    },
    toast_text(store, msg) { // 信息提示内容
        store.commit('TOAST_TEXT', msg)
    },
    /* -----------------------------------------------------------------------------------------------*/
    /**
     * 日期组件action
     * 
     * @param {any} { commit } 
     * @param {any} status 
     */
    calendarStatus({ commit }, status) {
        commit('comm_mark_status', status)
        commit('calendar_status', status)
    },
    //遮罩的开关
    markStatus({ commit }, status) {
        commit('comm_mark_status', status)
    },
    //单个数值
    calendarDateStatus({ commit }, date) {
        commit('calendar_date_status', date);
    },
    //确定日期 
    calendarOk(store, status) {
        store.commit('calendar_choice', status);
        if (store.state.dateYear && store.state.dateMonth && store.state.dateDay && store.state.dateHour && store.state.dateMinute && status) {
            store.commit('calendar_get_date')
            store.commit('comm_mark_status', false)
            store.commit('calendar_status', false)
            store.commit('calendar_choice', false)
        }
    },
    /* -----------------------------------------------------------------------------------------------*/
    degree_type(store, type) {
        store.commit('DEGREE_TYPE', type)
    },
    isLoading(store, data) {
        store.commit('IS_LOADING', data)
    },
    maintainInfo(store, data) {
        store.commit('MAINTAIN_INFO', data)
    },
    /**
     * 
     * 保存经纬度
     * @param {obj} store 
     * @param {obj} data 
     */
    recordAddress(store, data) {
        store.commit('RECORD_ADDRESS', data)
    },
    location(store, data) {
        store.commit('ADDRESS', data)
    },
    contactsId(store, data) {
        store.commit('CONTACTSID', data)
    }
}